def add(x,y): 
    if isinstance(x,decimal) and isinstance(y,decimal):
        return x+y
    return "error"